//
//  secondViewController.m
//  INAlienLand
//
//  Created by dllo on 15/7/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "secondViewController.h"

@interface secondViewController ()

@end

@implementation secondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64 - 49)];
    [self.view addSubview:webView];
    NSString *str = self.url;
    NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:str]];
    
    
    [webView setBackgroundColor:[UIColor colorWithRed:0.987 green:1.000 blue:0.806 alpha:1.000]];
    [webView loadRequest:request];
    
    [webView goBack];
    [webView goForward];
    [webView reload];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
